package com.shanzhu.tourism.mapper;

import com.shanzhu.tourism.domain.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2025/03/28/15:04
 **/
@Mapper
public interface ProductMapper {
    List<Product> selectList(Product product);
    Product selectById(Long productId);
    int insert(Product product);
    int update(Product product);
    int deleteById(Long productId);
    int updateStock(@Param("productId") Long productId, @Param("count") Integer count);
}
